/*
** set_modes.c for  in /u/all/caille_c/cu/public/colle
** 
** Made by carole cailleux
** Login   <caille_c@epitech.net>
** 
** Started on  Mon Apr 26 20:47:36 2010 carole cailleux
** Last update Mon Apr 26 23:06:55 2010 carole cailleux
*/

#include <termios.h>
#include "starwars.h"

void			set_modes()
{
  struct termios	t;

  if (ioctl(0, TIOCGETA, &t) < 0)
    my_puterror("Error with ioctl\n");
  t.c_lflag &= ~(ICANON | ECHO | ISIG);
  if (ioctl(0, TIOCSETA, &t) < 0)
    my_puterror("Error with ioctl\n");
}
